LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CopyTo Method
See Also 
Leadtools.Dicom.AddIn Namespace > ThreadSafeDictionary<TKey,TValue> Class : CopyTo Method



array
The one-dimensional System.Array that is the destination of the elements copied from ICollection. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
array
The one-dimensional System.Array that is the destination of the elements copied from ICollection. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Copies the elements of the ICollection to an System.Array, starting at a particular System.Array index.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub CopyTo( _
   ByVal array() As KeyValuePair(Of TKey,TValue), _
   ByVal arrayIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim array() As KeyValuePair(Of TKey,TValue)
Dim arrayIndex As Integer
 
instance.CopyTo(array, arrayIndex)
C# 
public virtual void CopyTo( 
   KeyValuePair<TKey,TValue>[] array,
   int arrayIndex
)
C++/CLI 
public:
virtual void CopyTo( 
   array<KeyValuePair<TKey^,TValue^>>^ array,
   int arrayIndex
) 

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from ICollection. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.

Exceptions

ExceptionDescription
System.ArgumentNullException is null.
System.ArgumentOutOfRangeException is less than 0.
System.ArgumentException is multidimensional. -or- is equal to or greater than the length of . -or- The number of elements in the source is greater than the available space from to the end of the destination . -or- Type cannot be cast automatically to the type of the destination .

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features